sap.ui.define([], () => {
    "use strict";

    return {
        statusText(sStatus) {
            const oResourceBundle = this.getOwnerComponent().getModel("i18n").getResourceBundle();
            switch (sStatus) {
                case "A":
                    return oResourceBundle.getText("invoiceStatusA");
                case "B":
                    return oResourceBundle.getText("invoiceStatusB");
                case "C":
                    return oResourceBundle.getText("invoiceStatusC");
                default:
                    return sStatus;
            }
        },
        statusText2(sStatus) {
            const oResourceBundle = this.getOwnerComponent().getModel("i18n").getResourceBundle();
            switch (sStatus) {
                case "A":
                    return oResourceBundle.getText("invoiceStatusAA");
                case "B":
                    return oResourceBundle.getText("invoiceStatusBB");
                case "C":
                    return oResourceBundle.getText("invoiceStatusCC");
                default:
                    return sStatus;
            }
        }
    };
});